<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .tabbar{
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 10px;
            border-top: 1px solid #ccc;
            box-sizing: border-box;
            display: flex;
            justify-content: space-around;
            text-align: center;
            line-height: 40px;
        }
        .tabbar div.active{
            color: white;
            width: 25%;
            background-color: #ccc;
            font-size: 20px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="tabbar">
            <!-- :style="{color: currentIndex == index?'white':'', background: currentIndex == index?'red':'' }"  -->

            <div  :class="{active: currentIndex == index }"  @click="handleClick(index)" class="btn" v-for="(item,index) in list">
                <!-- <img src="" alt=""> -->
                <div class="name">{{item.name}}</div>
            </div>
        </div>
    </div>
    <script src="./vue-2.5.21.js"></script>
    <script src="./index-高亮.js"></script>
</body>
</html>